package com.gscitysfy.cus.drain.modules.duty.vo;

import cn.hutool.core.util.StrUtil;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @author 葛守跃
 * @version 1.0.0
 * @ClassName MoperDutyMnChangeVo
 * @Description VO类
 * @creatTime 2022/3/29 17:58
 */
@Data
public class MoperDutyMnChangeVo implements Serializable {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date coamDutyDateStart;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date coamDutyDateEnd;

    private String coamDutyType;

    private String coamDutyClassId;

    private Integer coamDutyFile;

    private String ids;

    private List<String> idArr;

    public void setIds(String ids) {
        if(!StringUtils.isEmpty(ids)){
            this.idArr = Arrays.asList(ids.split(StrUtil.COMMA));
        }
        this.ids = ids;
    }

}
